package com.gionee.survey.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gionee.survey.bean.Survey;
import com.gionee.survey.dao.ISurveyDao;
import com.gionee.survey.service.ISurveyService;

/**
 * 
 * @author yuwei
 * @time 2017年4月13日 下午4:50:07
 */
@Service
public class SurveyServiceImpl implements ISurveyService {
	@Resource
	private ISurveyDao surveyDao;
	@Override
	public int deleteByPrimaryKey(String id) {
		return surveyDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Survey record) {
		return surveyDao.insert(record);
	}

	@Override
	public int insertSelective(Survey record) {
		return surveyDao.insertSelective(record);
	}

	@Override
	public Survey selectByPrimaryKey(String id) {
		return surveyDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Survey record) {
		return surveyDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Survey record) {
		return surveyDao.updateByPrimaryKey(record);
	}

	public ISurveyDao getSurveyDao() {
		return surveyDao;
	}
	public void setSurveyDao(ISurveyDao surveyDao) {
		this.surveyDao = surveyDao;
	}
}
